var vm_chaxuntongji = new Vue({
    el : "#chaxuntongji",
    data : {
        deptid : $("#deptid").val(),		// 单位ID

        jingfeipicilist : [],//

        //查询用字段
        picimingcheng : '',
        zhuangtai : '',

    },
    created : function(){
        var _this = this;

        _this.bindJingfeiPiciList();

    },
    methods : {

        //
        bindJingfeiPiciList : function(){
            var _this = this;

            var jingfeipici_layer = layer.open({type:3});
            $.post('/system/jingfeipici/customlist', {
                deptid : _this.deptid,
                piciname : _this.picimingcheng,
                zhuangtai : _this.zhuangtai,
                rdm : Math.random()
            },function(ppData) {
                layer.close(jingfeipici_layer);

                if (ppData != null) {
                    if (ppData.result==1){
                        var data = ppData.resultContent;
                        _this.jingfeipicilist = data;
                    }else{
                        layer.alert(ppData.message);
                    }
                }
            },"json");
        },

        reset:function () {
            this.picimingcheng=""
            this.bindJingfeiPiciList()
        },

        Export:function(jingfeipiciitem){
            var _this = this;
            location.href = "/export/daochu_bokuanbiao?piciid="+jingfeipiciitem.id
        },

        //
        toJingfeiPiciDetail : function(jingfeipiciitem){
            $.modal.openTab("单位拨款详情",'system/jintieguanli/bokuandetail?jingfeipiciid='+jingfeipiciitem.jingfeipiciid+"&deptid="+jingfeipiciitem.deptid,false);
        },

    },
})